<?php
error_reporting(0);
if(empty($_GET['url'])){
  if($arr=getimagesize('http://ehs.cn/main/PublicFunction/upload/20110527/2011052703134_45496.jpg'))
    echo $arr[0];
  else echo 'f1';
  }	
else
echo json_encode(array('width'=>'f2'));

?>